@use "@/uni.scss" as uni;

.page {
    padding: unset;
    height: 100vh; // 确保页面容器有明确高度
    display: flex;
    flex-direction: column;

    .scroll-view {
        width: 100%;
        flex: 1; // 使用 flex 占据剩余空间
        min-height: 0; // 防止 flex 项目无限扩张

        .userInfo {
            width: calc(100% - uni.$padding-LR * 2);
            padding: 50rpx 0 20rpx;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;

            .avatar {
                width: 160rpx;
                height: 160rpx;
                border-radius: 50%;
                overflow: hidden;

                .image {
                    width: 100%;
                    height: 100%;
                }
            }

            .nick-name {
                padding: 15rpx 0 10rpx;
                font-size: 40rpx;
                color: #000;
                font-weight: 500;
            }

            .address {
                font-size: 28rpx;
                color: #aaa;
                font-weight: 500;
            }
        }

        .section {
            width: calc(100% - uni.$padding-LR * 2);
            margin: 80rpx auto 0;
            border: 1px solid #eee;
            border-radius: 15rpx;
            box-shadow: 0 0 10rpx rgba(0, 0, 0, 0.1);

            .row {
                padding: 25rpx 20rpx;
                border-bottom: 1rpx solid #eee;
                display: flex;
                justify-content: space-between;
                align-items: center;
                position: relative;

                .left {
                    display: flex;
                    justify-content: center;
                    align-items: center;

                    .lable {
                        margin-left: 10rpx;
                        font-size: 28rpx;
                        color: #000;
                        font-weight: 500;
                    }
                }

                .right {
                    display: flex;
                    justify-content: center;
                    align-items: center;

                    .num {
                        margin-right: 10rpx;
                        font-size: 28rpx;
                        color: #aaa;
                        font-weight: 500;
                    }
                }

                .btn-contact {
                    position: absolute;
                    left: 0;
                    font-size: 25rpx;
                    width: 100%;
                    opacity: 0;
                }

                &:last-child {
                    border-bottom: 0;
                }
            }
        }

        .section:last-child {
            margin-top: 30rpx;
        }
    }
}
